﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class PlayerManager : MonoBehaviour
{
    public static PlayerManager Get = null;

    //当前走棋的玩家
    public Camp currentPlayer = Camp.Blue;

    private void Awake()
    {
        Get = this;
    }

    /// <summary>
    /// 当一手棋下完时，取消对棋子的选定，并将行棋权交给另一方玩家
    /// </summary>
    public static void Tik()
    {
        SelectCore.DropSelect();
        if (Get.currentPlayer == Camp.Blue)
        {
            Get.currentPlayer = Camp.Red;
        }
        else
        {
            Get.currentPlayer = Camp.Blue;
        }
    }
}
